package com.deyuanyun.pic.pipe.support.utils;

import com.github.pagehelper.Page;

public class PageUtil<E> extends Page<E> {

	public int pageCount; //每页条数
	public int pageNum;//当前页数
	public int total;//总条数
	public int totalPage;//总页数
	public int getPageCount() {
		
		return super.getPageSize();
	}
	public int getPageNum() {
		return super.getPageNum();
	}
	public long getTotal() {
		return super.getTotal();
	}
	public long getTotalPage() {
		if(getPageCount() == 0) {
			return 0;
		}
		int temp = (int) (getTotal() / getPageCount());
	
		return (getTotal() % getPageCount()) == 0 ? temp + 1 : temp;
	}
	
	
	
}
